
/******************************************************************************
*@file  : main.c
*@brief : main program
******************************************************************************/

#include "main.h" 
#include "app.h"   
extern PCOM_HandleTypeDef hpcom;

/*
INP_SEL1,PA2
INP_SEL2,PA3  
VBAT_SEL,PA6
*/
enum_TEST_MODE_t TEST_SEL = INP_SEL1;

/******************************************************************************
*@brief : main program
*@param : none
*@return: none
******************************************************************************/
int main(void)
{
    int tick=0;
	HAL_Init();  
    SystemClock_Config(SYSCLK_180M_SRC_RC64M,RCC_PCLK1_DIV_1,RCC_PCLK2_DIV_1);  
    HAL_Init_Ex();  
    
    BSP_UART_Init(UART1);  
    BSP_PB_Init();

    APP_Test(TEST_SEL);  


    while(1)
    {

#if 0
        PCOM_Result();
#else
        HAL_Delay(1000);
        printfS("tick %d\r\n",tick++);
        PCOM_Cal_Input_Vot();
#endif

    }

}












